package com.heima.studentinfoplus.repository;

import com.heima.studentinfoplus.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
    User findByUsernameAndRole(String username, int role);
}
